//
//  YJProgressHud.m
//  Safflower
//
//  Created by 袁亮 on 2016/11/28.
//  Copyright © 2016年 Migic_Z. All rights reserved.
//

#import "YJProgressHud.h"

@implementation YJProgressHud

+ (void)showLoadingHud:(NSString *)message
{
    [SVProgressHUD setDefaultAnimationType:SVProgressHUDAnimationTypeNative];
    [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeClear];
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD showWithStatus:message];
}

+ (void)showSuccessHud:(NSString *)message
{
    [SVProgressHUD setMinimumDismissTimeInterval:1.0f];
    [SVProgressHUD showSuccessWithStatus:message];
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeClear];
}

+ (void)showErrorHud:(NSString *)message
{
    [SVProgressHUD setMinimumDismissTimeInterval:1.0f];
    [SVProgressHUD showErrorWithStatus:message];
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeClear];
}

+ (void)dissmiss
{
    [SVProgressHUD dismiss];
}


@end
